export class DataManager {
  private _currentUserId = 0
  private static _instance: DataManager

  // eslint-disable-next-line @typescript-eslint/no-empty-function
  private constructor() {}

  static getInstance(): DataManager {
    if (!this._instance) {
      this._instance = new DataManager()
    }
    return this._instance
  }

  get currentUserId(): number {
    return this._currentUserId
  }

  set currentUserId(userId: number) {
    this._currentUserId = userId
  }
}
